footer.init();
header.init('店铺收益');

app.ajax(
	'/Member/Shop/profit_index',
	null,function(res){
		if(res.code == 200){
			app.tpl($('.profit-content'),'tpl-profit-content',res);
		}else{
			layer.msg('网络繁忙，请稍候再试');
		}
});
window.onload = function(){
	$('body').on('click','.togetCash',function(){
		app.open('shop.getCash.html','shop_getCash',{},window.location.href,document.body.scrollTop);
	});
	
	$('body').on('click','.profitDetails',function(){//明细
		app.open('shop.profit.detaillist.html','shop_detaillist',{},window.location.href,document.body.scrollTop);
	});
	
	$('body').on('click','.wait-profit',function(){//待收益
		app.open('shop.waitprofit.html','shop_waitprofit',{},window.location.href,document.body.scrollTop);
	});

	$('body').on('click','.cash-record',function(){//已提现
		app.open('shop.getCashRecord.html','shop_CashRecord',{},window.location.href,document.body.scrollTop);
	});
	
	$('body').on('click','.bindAccount',function(){//已提现
		app.open('shop.manAccount.html','addAccount',{},window.location.href,document.body.scrollTop);
	});
}
